package org.example.service.RedPackage;

import org.example.bean.RedPacketActivity;
import org.example.enums.RedPacketStatus;

import java.util.List;

public interface RedPacketService {
    //根据 活动id查询活动状态
    public RedPacketStatus getRedPacketStatus(Integer activityId);

    //查找最新活动信息
    public RedPacketActivity getRedPacketActivity();
    //抢红包
    public GrabResult grabRedPacket(Integer userId, Integer activityId);

    //创建红包活动
    public RedPacketActivity createRedPacketActivity(RedPacketActivity redPacketActivity);
    //查询所有的活动信息
    public List<RedPacketActivity> getAllRedPacketActivity();
}
